home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / dev / basic / UDP_Chat.readme < prev   
Text File  |  1999-05-02  |  6KB  |  110 lines

  1. Short:    UDPfuncsV2.3 for Blitz-good for Net games
  2. Author:   anton@ww.co.nz (Anton Reinauer)
  3. Uploader: anton@ww.co.nz (Anton Reinauer)
  4. Version:  2.3
  5. Type:     dev/basic
  6. Requires: dev/basic/TCP-to-Blitz.lha, WB 2.0+, min 1.5 meg mem.
  7.  
  8.   These are functions to use the UDP protocol for multiplayer internet
  9. games in Blitz2. Also there is a small IRC-like chat program which is a 
  10. good Net game communications test-bed. It checks wether packets have 
  11. arrived at their destination by using an acknowledgement system, and 
  12. resends packets if necessary. Also it can also act as either a Server 
  13. or Client. It has full Connect/Disconnect routines- each player is informed 
  14. of the new player and starts sending any messages to the new player, as 
  15. the communication is still Peer-To-Peer. Players are automatically 
  16. disconnected by the Server if they can't be contacted for a certain amount
  17. of time.
  18.   There's a few TCP functions as well, like converting an ASCII address to
  19. numerical (long), and vice-versa, getting your local IP address etc. Some 
  20. of the log-in and message protocols could be used in TCP games as well.
  21.   It has an Arexx port to allow you to automatically connect to other
  22. UDP_Chat programs from AmiComSys- you just have to pass a host address
  23. to UDP_Chat. 
  24.  
  25.   UDP is more appropriate for fast action games, like Doom clones,
  26. Xwing clones, or platformers, maze games etc; anything that needs small 
  27. lags (ping times), to remain playable over the Internet/LAN.
  28.  
  29.  
  30.                          What's new in V2.3!
  31.  
  32.  Version 2.3  7/3/1999 
  33. ------------    
  34.   I've put in the auto-disconnect code, for when a player stops
  35. responding. If a player can't communicate when another player it
  36. tells the server this- then the Server checks this fact and tells all
  37. the players if this is true. This is for the rare case that two
  38. players have a connection to a third, but only one of those players
  39. loses connection to the third one. If the server can communicate with
  40. the player that's thought to be offline, then the player that
  41. initiated the call gets disconnected instead. This is just some
  42. simple security, to stop cheating by getting the other person
  43. disconnected. 
  44.    I've tidied up the main loop and taken most stuff out of it- most
  45. of the work is now done by the Comms_Housekeeping{} Function. It's
  46. now much easier to slot these functions into your game.
  47.    Added the Clear_Player_Arrays Statement to re-initialise a
  48. disconnected player's data.
  49.   Fixed some disconnecting bugs, and now Requested_Connection{}
  50. checks wether the host and port are already connected (it was
  51. possible before to let a host log in twice- if you got the timing
  52. wrong!)
  53.   Added Security_Warning{} to allow people to have security messages
  54. printed out in their game- you can chose all, medium, or only serious
  55. security warnings. 
  56.   Some repeated code in Comms_Housekeeping{} and Acknowledge_Packet{}
  57. has been shifted to Resend_Message{}.
  58.  
  59.  Version 2.2  14/11/1998 (internal version- not released)
  60. ------------            
  61.     The disconnect code has been put in, and I tidied up the Decode_Packet
  62. and Requested connection functions (no more passing variables between them
  63. through Global variables- naughty :).
  64.   Also I've changed the Packet protocol a bit- all packets now have a
  65. packet number (.l) in the front, wether they need it or not, as it makes
  66. the encoding and decoding of packets much simpler.
  67.   Acknowledge_Packet now checks wether the packet number is in correct
  68. bounds to prevent it getting in a loop, if a bad packet is received.
  69.   If the Server closes, it sends the #GAME_END message to all players,
  70. if a player closes, it sends #CP_REQ_PLAYER_DISCONNECT with it's player
  71. number to the Server, then the Server informs all the players (including
  72. the one that sent the disconnect message) that the player has quit, then
  73. the player quits when it receives the disconnect message with it's
  74. player number.
  75.   Once a Client or Server has started to quit, it will quit after a certain
  76. time-out, even if it doesn't get all the responses it required.
  77.  
  78.  
  79. ============================= Archive contents =============================
  80.  
  81. Original  Packed Ratio    Date     Time    Name
  82. -------- ------- ----- --------- --------  -------------
  83.    22203    8736 60.6% 29-Mar-99 20:23:10 +Lag problems in Net games 
  84.      267     196 26.5% 29-Mar-99 20:23:10 +Quit_UDP_Chat.rexx
  85.     1290     666 48.3% 29-Mar-99 20:23:10 +UDP_Chat.rexx
  86.    28052   11293 59.7% 29-Mar-99 21:22:24 +UDP-Examples.guide
  87.     3244    1357 58.1% 29-Mar-99 20:23:10 +UDPFuncs.bb2
  88.     1246     190 84.7% 29-Mar-99 20:23:10 +UDPFuncs.bb2.xtra
  89.     1238     185 85.0% 29-Mar-99 20:23:10 +UDPHeader.bb2.xtra
  90.     2096     814 61.1% 29-Mar-99 20:23:10 +net_protocol_header.bb2
  91.     2987    1275 57.3% 29-Mar-99 20:23:10 +TCPFuncs.bb
  92.    23616    7216 69.4% 29-Mar-99 20:23:10 +UDP_ChatV1.9.asc
  93.     3199    1375 57.0% 29-Mar-99 20:23:10 +UDP_Receive.asc
  94.     3056    1336 56.2% 29-Mar-99 20:23:10 +UDP_Receive2.asc
  95.      588     294 50.0% 29-Mar-99 20:23:10 +UDPHeader.bb2
  96.    14715    4624 68.5% 29-Mar-99 20:23:10 +UDP_ChatV1.6.asc
  97.    20690    6332 69.3% 29-Mar-99 20:23:10 +UDP_ChatV1.7.asc
  98.    24370    7091 70.9% 29-Mar-99 20:23:10 +UDP_ChatV1.8.asc
  99.    26872    8282 69.1% 29-Mar-99 20:23:10 +UDP_ChatV2.0.asc
  100.     3014    1255 58.3% 29-Mar-99 20:23:10 +UDP_Send.asc
  101.     3209    1347 58.0% 29-Mar-99 20:23:10 +UDP_Send2.asc
  102.     2588     957 63.0% 29-Mar-99 20:23:10 +net_protocol_header.bb2
  103.     1242     218 82.4% 29-Mar-99 20:23:10 +net_protocol_header.bb2.xtra
  104.    26870    8282 69.1% 29-Mar-99 20:23:10 +UDP_ChatV2.1.asc
  105.    33629    9796 70.8% 29-Mar-99 20:23:10 +UDP_ChatV2.2.asc
  106.    39719   11458 71.1% 29-Mar-99 20:23:10 +UDP_ChatV2.3.asc
  107.     1242     179 85.5% 29-Mar-99 20:23:10 +UDP_ChatV2.3.bb2.xtra
  108. -------- ------- ----- --------- --------
  109.   291242   94754 67.4% 29-Mar-99 22:26:30   25 files
  110.